package com.zyp.service;


import com.zyp.bean.User;
import com.zyp.dao.UserDao;
import com.zyp.factory.UserDaoFactory;

public class UserService {

    private UserDao userDao;

    public UserService(){
        this.userDao = UserDaoFactory.getUserDao();
    }

    /**
     * 自定义成员方法实现根据参数指定的User对象来调用Dao层实现登入功能
     * @param user
     * @return
     */
    public User userLoginService(User user){
        return userDao.userLogin(user);
    }
}
